package com.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gulimall.common.utils.PageUtils;
import com.product.entity.SkuInfoEntity;
import com.product.vo.SkuItemVo;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * sku信息
 *
 * @author
 * @email 3299686223@qq.com
 * @date 2022-08-08 14:42:26
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<SkuInfoEntity> getSkusBySpuId(Long spuId);

    /**
     * 商品详情
     *
     * @param skuId 商品id
     * @return 结果
     */
    SkuItemVo item(Long skuId) throws ExecutionException, InterruptedException;
}

